package com.qifei.xmlg_backend.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 员工表
 * </p>
 *
 * @author qifei
 * @since 2025-06-10
 */
@Data
@ApiModel(value = "Emp对象", description = "员工表")
public class Emp implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty("密码")
    private String password;

    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    private String name;

    /**
     * 性别, 说明: 1 男, 2 女
     */
    @ApiModelProperty("性别, 说明: 1 男, 2 女")
    private Integer gender;

    /**
     * 图像
     */
    @ApiModelProperty("图像")
    private String image;

    /**
     * 职位, 说明: 1 班主任,2 讲师, 3 学工主管, 4 教研主管, 5 咨询师
     */
    @ApiModelProperty("职位, 说明: 1 班主任,2 讲师, 3 学工主管, 4 教研主管, 5 咨询师")
    private Integer job;

    /**
     * 入职时间
     */
    @ApiModelProperty("入职时间")
    private LocalDate entrydate;

    /**
     * 部门ID
     */
    @ApiModelProperty("部门ID")
    private Integer deptId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Override
    public String toString() {
        return "Emp{" +
                "id = " + id +
                ", username = " + username +
                ", password = " + password +
                ", name = " + name +
                ", gender = " + gender +
                ", image = " + image +
                ", job = " + job +
                ", entrydate = " + entrydate +
                ", deptId = " + deptId +
                ", createTime = " + createTime +
                ", updateTime = " + updateTime +
                "}";
    }
}
